<script type="text/javascript">
 var type="";
function listenMessage(msg) {
  show(msg.data,type);
  type="";
}

if (window.addEventListener) {
    window.addEventListener("message", listenMessage, false);
} else {
    window.attachEvent("onmessage", listenMessage);
}
function show(url,type)
{
	if(type=='smallPicture')
	{
		SetFileField(url);
	}
	else
	{
		SetUrl(url);
	}

}
function SetUrl(fileUrl)
{
	document.getElementById( 'cke_114_textInput' ).value = fileUrl;
}

</script>
<script src="{$smarty.const.base_includes}ckeditor/ckeditor.js"></script>
		    <link rel="stylesheet" href="{$smarty.const.base_admin}assets/bootstrap-toggle-buttons/static/stylesheets/bootstrap-toggle-buttons.css" />

 <!-- BEGIN PAGE CONTAINER-->
         <div class="container-fluid">
            <!-- BEGIN PAGE HEADER-->   
            <div class="row-fluid">
               <div class="span12">
                   <!-- BEGIN THEME CUSTOMIZER-->
                   <div id="theme-change" class="hidden-phone">
                       <i class="icon-cogs"></i>
                        <span class="settings">
                            <span class="text">Theme Color:</span>
                            <span class="colors">
                                <span class="color-default" data-style="default"></span>
                                <span class="color-green" data-style="green"></span>
                                <span class="color-gray" data-style="gray"></span>
                                <span class="color-purple" data-style="purple"></span>
                                <span class="color-red" data-style="red"></span>
                            </span>
                        </span>
                   </div>
                   <!-- END THEME CUSTOMIZER-->
                  <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                   <h3 class="page-title">
                     {$nameact}
                   </h3>
                   
                   <!-- END PAGE TITLE & BREADCRUMB-->
               </div>
            </div>
            <!-- END PAGE HEADER-->
            <!-- BEGIN ADVANCED TABLE widget-->
            <div class="row-fluid">
                <div class="span12">
                <!-- BEGIN EXAMPLE TABLE widget-->
                <div class="widget green">
                    <div class="widget-title">
                        <h4><i class="icon-reorder"></i>Tùy Chọn Đóng/Mở Website</h4>
                            <span class="tools">
                                <a href="javascript:;" class="icon-chevron-down"></a>
                                <a href="javascript:;" class="icon-remove"></a>
                            </span>
                    </div>
					{$msg}<br>
                    <div class="widget-body">
                        <form action="" method="post" class="form-horizontal">
						<div class="control-group">
                                <label class="control-label">Tùy Chọn</label>
                                <div class="controls">
                                    <input type="radio" name="content1" value="0" {if $data.content1 ne '1'} checked=''{/if}>Đóng
							<span style="min-width:150px;float:left">
							<input type="radio" name="content1" value="1" {if $data.content1 eq '1'} checked=''{/if}>Mở</td>
                                </div>
                            </div>
							<div class="control-group">
                                <label class="control-label">Nội Dung</label>
                                <div class="controls">
                                    <textarea class="span12 ckeditor" name="content2">{$data.content2}</textarea>
                                </div>
                            </div>
							
			  <div class="form-actions">
				      <button type="submit" name="savepost" class="btn blue" value='Lưu Nội Dung'><i class=" icon-ok"></i> Lưu Nội Dung</button>
					            </div>
		</form>
                    </div>
                </div>
                <!-- END EXAMPLE TABLE widget-->
                </div>
            </div>

            <!-- END ADVANCED TABLE widget-->
         </div>
         <!-- END PAGE CONTAINER-->